const app = getApp();
Page({
    data: {
       CustomBar:0,
        TabCur: 0,
        scrollLeft:0,
        SortMenu: [
        {id:0,name:"全部订单"},
        {id:1,name:"待付款"},
        {id:2,name:"已完成"},
        {id:3,name:"已取消"}]
    },
    onLoad: function (options) {
        let that = this;
    },
    tabSelect(e) {
        console.log(e.currentTarget.dataset.id);
        this.setData({
            TabCur: e.currentTarget.dataset.id,
            scrollLeft: (e.currentTarget.dataset.id-1)*60
        })
    },
   
});
